﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Kelper.Domain.Models
{
    public class Tag
    {
        [Key]
        [MaxLength(15, ErrorMessage = "The tag may not be longer than 15 characters")]
        public string Name { get; set; }

        public virtual ICollection<Recipe> Recipes { get; set; }
    }
}
